//
//  LPTPreUseTableViewCell.m
//  LPTClient
//
//  Created by mac on 2018/12/15.
//  Copyright © 2018年 zhaodd. All rights reserved.
//

#import "LPTPreUseTableViewCell.h"

@interface LPTPreUseTableViewCell ()<UITextFieldDelegate>

@end

@implementation LPTPreUseTableViewCell

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.textField.delegate = self;
}

-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
    NSString *text = [textField.text stringByReplacingCharactersInRange:range withString:string];
    
    if (text.length > 100) {
        return NO;
    }
    
    return YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
